<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link rel="stylesheet" type="text/css" href="jquery.scanInput.css">
	<title></title>
</head>
<body>
<input name="ttt1" type="text"> 
<input name="ttt" type="text">
</body>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.scanInput.js"></script> 

<script type="text/javascript">
$(function(){ 
	$("[name='ttt']").scanInput(function(data){
		alert(data);
	});
});
</script>
</html>